package com.example.demo.util;

import com.pinza.kingdee.kEnum.KingDeeEnum;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

/**
 * Created by  on 2019/1/3
 */
public class StaticUtil {


//    public static KingDeeEnum kingDeeEnum = KingDeeEnum.OFFICIAL;//生产环境
//    private static String EOS_SKU_IP = "https://eos.pinza.com.cn"; //生产环境
//    public static String USER_IP = "https://user.pinza.com.cn"; //生产环境

  private static String EOS_SKU_IP = "https://eos.pinza.ltd:1443"; //测试环境
  public static String USER_IP = "https://user.pinza.ltd"; //测试环境
  public static KingDeeEnum kingDeeEnum = KingDeeEnum.INFORMALITY;//测试环境


    public static final String PM_VOUCHER = "1000";  //收票
    public static final String RECEIPT = "1100";  //收款
    public static final String PAY_AMOUNT = "1110"; //付款
    public static final String INV_VOUCHER = "1111"; //开票
    public static final String DISPATCH_MSG_ID = "FORM-20200325125837297"; //发货申请消息ID


    public static String LucenePath = "C:\\LuceneDataSpace\\";


//    public static final String PM_SERVER_URL = "http://erp.pinza.ltd:9001";

    public static  final Map<String,String> FCURRENCYID = new HashMap(){{
            put("FNumber","PRE001");
    }};
    public static  final Map<String,String> FEXCHANGERATETYPE = new HashMap(){{
        put("FNumber","HLTX01_SYS");
    }};


    /**
     * 首信接口调用正式地址http://erp.pinza.ltd:8888
     */
    public static final String server = "http://erp.pinza.ltd:9001";
    //    public static final String server = "http://erp.pinza.ltd:8888";
    public static final String catalog = "402889e9530be25601530be2828c0001";///材料分类id
    public static final String library = "2c9385ed630795c1016323c651cc1420";///库id
    public static final String finalCatalog = "402889e75a7d6b0c015a7dc60486002a";///成本类别id

    /**
     * 异常日志目录
     */
    public static String LOGPATH = "C:\\datasourcelog\\";

    /**
     * 提交数据日志
     */
    public static String PARAMLOGPATH = "C:\\datasourcelog\\paramlog\\";


    /**
     * MQ
     */
    public static String MQ_MESSAGE = EOS_SKU_IP + "/message/insert.json";

    /**
     * EOS的sku作废  正式
     */
    public static String CancelEosSku = EOS_SKU_IP + "/contractRealTime/cancel.json?sku_code=";
    public static String updateEosSku = EOS_SKU_IP + "/contractRealTime/completion.json";

    /**
     * 主键id
     */
    public static final String ID = "id";


    /**
     * sku中要分词的字段名
     */
    public static final Set<String> SKU_SET = new HashSet<String>() {{
        add("sku_name");
        add("sku_model");
        add("sku_content");
    }};


    /**
     * order中要分词的字段名
     */
    public static final Set<String> ORDER_SET = new HashSet<String>() {{
        add("consignee_name");
        add("buyer");
        add("orderBill_id");
        add("project_name");
        add("remark");
        add("userGroup_name");
    }};


    public static final Set<String> ORDER_FORM_SET = new HashSet<String>() {{
        add("project_name");
        add("xsdd_sku_name");
        add("group");
        add("consignee_information");
        add("consignee_address");
        add("consignee_name");
        add("supply_user");
    }};


    /**
     * 系统初始化时获取金蝶中的项目编号，便于PM项目同步到金蝶中对编码去重。
     */
    public static Set<String> PROJECT = new HashSet<>();


    /**
     * sku的formId
     */
    public static final String SKU_FORMID = "SKU_LIST_INFO";

    public static String SKU_SLUG_FORMID = "SKU_SLUG_FORMID";
    public static String SKU_SLUG_SET_FORMID = "SKU_SLUG_FORMID";


    /**
     * 订单列表的formId
     */
    public static final String ORDER_FORMID = "ORDER_LIST_INFO";
    public static final String ORDER_FORM_LIST_FORMID = "ORDER_FORM_LIST_FORMID";

    /**
     * 订单明细列表
     */
    public static final String ORDER_DETAIL_FORMID = "ORDER_DETAIL_LIST_INFO";


    /**
     * 标准时间格式
     */
    public static final String FORMATDATE = "yyyy-MM-dd";


    /**
     * MQ给管理远发送消息id
     */
    public static final String creatUserId = "1";
    public static final String sendeeUserId = "1";


    /**
     * PM操作状态
     */
    public static final String SAVE = "SAVE";// 保存
    public static final String UPDATE = "UPDATE";//更新
    public static final String DISABLED = "DISABLED";//作废6972
}
